# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html

import scrapy




class lianjia_v3Item(scrapy.Item):
    '''
   # 房产表：
    ID，小区名称，价格
    所在区域，地铁线，地铁站
    #基本信息表
    户型，建筑面积，套内面积，房屋朝向，建筑结构，户型结构，装修情况，梯户比例，电梯，产权年限
    # 交易属性表
    挂牌时间，交易权属，上次交易时间，房屋用途，房屋年限，产权所属，抵押信息
    # 房源特色表
    核心卖点，户型介绍，周边配套，小区介绍，交通出行
    # 房主自荐
    房源特色，小区环境
    '''
    # 房产表：
    # ID，小区名称，价格
    ljid = scrapy.Field()
    xqmc = scrapy.Field()
    jg = scrapy.Field()
    # 所在区域，街道,地铁线，地铁站
    szqy = scrapy.Field()
    jd = scrapy.Field()
    dtx = scrapy.Field()
    dtz = scrapy.Field()
    # 基本信息表
    #户型
    hx = scrapy.Field()
    #建筑面积，套内面积，房屋朝向
    jzmj = scrapy.Field()
    tnmj = scrapy.Field()
    fwcx = scrapy.Field()
    # 建筑结构，户型结构，装修情况
    jzjg = scrapy.Field()
    hxjg = scrapy.Field()
    zxqk = scrapy.Field()
    # 梯户比例，电梯，产权年限
    thbl = scrapy.Field()
    dt = scrapy.Field()
    cqnx = scrapy.Field()
    # 交易属性表
    #挂牌时间，交易权属，上次交易时间，
    gpsj = scrapy.Field()
    jyqs = scrapy.Field()
    scjysj = scrapy.Field()
    #房屋用途，房屋年限，产权所属，抵押信息
    fwyt = scrapy.Field()
    fwnx = scrapy.Field()
    cqss = scrapy.Field()
    dyxx = scrapy.Field()



class HousedataItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    # ['华盛君荟名庭', '3室1厅', '85.38平米', '南', '精装', '有电梯']
    # add ID and price
    Garden = scrapy.Field()
    Layout = scrapy.Field()
    Size = scrapy.Field()
    Direction = scrapy.Field()
    Renovation = scrapy.Field()
    Elevator = scrapy.Field()
    Id = scrapy.Field()
    Price = scrapy.Field()
    Region = scrapy.Field()

class lianjia_v2(scrapy.Item):
    url = scrapy.Field()
    tag = scrapy.Field()


